<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>{$Think.lang.title}</title>
<link href="__DOMAIN__css/admin/main.css" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="__DOMAIN__js/switch.js"></script>
</head>
<body>
<include file="Global:header" />
<if condition="$label">
<form action="{:U("System/index")}" method="post" enctype="multipart/form-data">
<div class="lab">
  <foreach name="label" item="lab"> <span class="<eq name='lab.id' value='1'>cur<else/>on</eq>" id="lab{$lab.id}">{$lab.name}</span> </foreach>
</div>
<div class="list-div" style="border-top:none;">
  <foreach name="label" item="lab">
  <table id="labbox{$lab.id}" border="0" width="100%" cellpadding="2" cellspacing="1" <neq name="lab.id" value="1">style="display:none"</neq>>
    <foreach name="lab.list" item="list">
    <tr>
        <td class="label">{$list.name}：</td>
        <td>
        <!--text-->
        <if condition="$list['type'] eq 'text'">
        <input type="text" name="val[{$list.id}]" id="val{$list.id}" value="{$list.value}" size="30" class="input"/>
        </if>
        <!--textarea-->
        <if condition="$list['type'] eq 'textarea'">
        <textarea type="text" name="val[{$list.id}]" id="val{$list.id}" class="textarea">{$list.value}</textarea>
        </if>
        <!--fck-->
        <if condition="$list['type'] eq 'fck'">
        {:fckeditor('val['.$list["id"].']', $list["value"])}
        </if>
        <!--radio-->
        <if condition="$list['type'] eq 'radio'">
        <foreach name="list.list" item="nlist">
        <label for="r{$list.id}{$index}" style="padding-right:20px;"><input type="radio" name="val[{$list.id}]" id="r{$list.id}{$index}" value="{$nlist.value}" <php>if($nlist['selected'] == true){echo "checked"; }</php>/>{$nlist.name}</label>
        </foreach>
        </if>
        <!--select-->
        <if condition="$list['type'] eq 'select'">
        <select name="val[{$list.id}]" id="val{$list.id}">
        <foreach name="list.list" item="nlist">
        <option value="{$nlist.value}" <php>if($nlist['selected'] == true){echo "selected"; }</php>>{$nlist.name}</option>
        </foreach>
        </select>
        </if>
        <!--file-->
        <if condition="$list['type'] eq 'file'">
        <input type="file" name="file[{$list.id}]" /><br />
        <input type="text" name="val[{$list.id}]" value="{$list.value}" class="input"/>
        	<if condition="$list['value']">
        	<a href="{$list.value}" target="_blank"><img src="__DOMAIN__images/admin/icon_view.gif" align="absmiddle"/></a>
        	</if>
        </if>
        <if condition="$list.desc"><br />
        <span class="notice-span">{$list.desc}</span>
        </if>
        </td>
      </tr>
    </foreach>
    </table>
  </foreach>
</div>
<div class="button-div center">
	<input type="submit" class="button" value=" {$Think.lang.save} " />
    <input type="reset" class="button" value=" {$Think.lang.reset} " />
</div>
<script language="javascript" type="text/javascript">
<!--
var sw = new switchDiv(); 
var lab = new Array();
var labbox = new Array();
<volist name="label" id="lab">lab[{$i-1}]="lab{$lab.id}";labbox[{$i-1}]="labbox{$lab.id}";</volist>
sw.sd1(lab,labbox,"cur","on", 0);
//-->
</script>
</form>
</if>
<include file="Global:footer" />
</body>
</html>
